import request from '/@/utils/request';

// 查询充电设备列表
export function listCharger(query?: Object) {
  return request({
    url: '/module/charger/list',
    method: 'get',
    params: query
  })
}

// 查询充电设备详细
export function getCharger(id?: number) {
  return request({
    url: '/module/charger/' + id,
    method: 'get'
  })
}

// 新增充电设备
export function addCharger(data?: Object) {
  return request({
    url: '/module/charger',
    method: 'post',
    data: data
  })
}

// 修改充电设备
export function updateCharger(data?: Object) {
  return request({
    url: '/module/charger',
    method: 'put',
    data: data
  })
}

// 删除充电设备
export function delCharger(id?: number) {
  return request({
    url: '/module/charger/' + id,
    method: 'delete'
  })
}

// 导出充电设备
export function exportCharger(query?: Object) {
  return request({
    url: '/module/charger/export',
    method: 'get',
    params: query
  })
}



// 导出充电设备
export function exportTongjiCharger(query?: Object) {
  return request({
    url: '/module/charger/exportTongji',
    method: 'get',
    params: query
  })
}



// 重置二维码
export function resetQrCode(data?: Object) {
  return request({
    url: '/module/charger/resetQrCode',
    method: 'post',
    data: data
  })
}
